package com.dyz.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

//消费者 运行方式80可省略  例：localhost/consumer/dept/list
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.dyz.springcloud"}) //Feign被扫描到
@EnableHystrixDashboard//开启监控
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
